﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>::Happy - โทรศัพท์แบบเติมเงินจากดีแทค::</title>
        <link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css" />
        <link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css" />
        <script src="${RESOURCE}/scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
        <script src="${RESOURCE}/scripts/PageAction.js" type="text/javascript"></script>
        <script src="${RESOURCE}/scripts/validator.js" type="text/javascript"></script>
        <script type="text/javascript">
            function doSubmit() {
				var popWidth = 455;
				var popHeight = 210;
				var left = ($(window).width() - popWidth) / 2;
				var top = ($(window).height() - popHeight) / 2;
				window.open('${pageContext.request.contextPath}/Template.html?page=Confirm', 'tinyWindow', 'width=' + popWidth + ', height=' + popHeight + ', top=' + top + ', left=' + left + ' ,location=no');
            }
			
            function getConfirmPopUpMessage() {
               return '';
            }

            function handleConfirm() {
				$.ajax({
					type : 'post',
					url : '${pageContext.request.contextPath}/SOS.do',
					data : 'fnc=SOS&action=',
					dataType : 'json',
					success : function(data) {
						if(checkResult(data)) {
							alert('errorCode: ' + data.errorCode + '\nerrorMsg: ' + htmlDecode(data.errorMsg) + '\nerrorTuxMsgTextEng: ' + htmlDecode(data.errorTuxMsgTextEng) + '\nerrorTuxMsgTextThai: ' + htmlDecode(data.errorTuxMsgTextThai));
						}
					}
				});
            }
        </script>
    </head>
    <body>
        <div id="header">
            <%@ include file="../head.jsp" %>
        </div>

        <div id="container">
            <div id="pathway"><a href="${pageContext.request.contextPath}/index.html"  class="link2">บริการผ่านเว็บ</a> &gt; <a href="${pageContext.request.contextPath}/index.html?page=Welcome"  class="link2">ข้อมูลส่วนตัวและแพ็กเกจ</a> &gt; <a class="link2">บริการใจดีให้ยืม</a></div>
            <div id="main">
                <%@ include file="../menu.jsp" %>
                <div id="content">
                    <div class="content-middle">

                        <!--เนื้อหาเริ่มที่นี่-->
                        <table width="100%" cellpadding="2" cellspacing="2" height="500">
                            <tr>
                                <td valign="top">

                                    <table width="650" border="0" cellspacing="0" cellpadding="0">
                                        <!--SVLT.VAR:CONF_TOP-->
                                        <%@ include file="../control_panel.jsp" %>

                                        <tr>
                                            <td> <table width="100%" border="0" cellspacing="3" cellpadding="0">
                                                    <tr>
                                                        <td width="2%"><img src="${RESOURCE}/tha/images/14_webservice_bullet01.gif" width="9" height="9" /></td>
                                                        <td width="98%" class="textnormal_bold"><img src="${RESOURCE}/tha/images/14_webservice_subtitle08.gif" width="350" height="22" /></td>
                                                    </tr>
                                                    <tr>
                                                        <td>&nbsp;</td>
                                                        <td class="textnormal">วันนี้บริการใจดี ให้ยืมจากแฮปปี้ สามารถยืมค่าโทรฉุกเฉินครั้งละ 30
											บาท ผ่านระบบออนไลน์ได้แล้ว ใช้คืนเมื่อไหร่<br/>
											ก็ยืมได้อีกไม่มีขีดจำกัด</td>
                                                    </tr>
                                                </table></td>
                                        </tr>
                                        <tr>
                                            <td height="15" align="center">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td height="15" align="left"><br/>
                                                <table width="50%" border="0" align="center" cellpadding="0" cellspacing="3">
                                                    <tr>
                                                        <td width="2%"><img src="${RESOURCE}/tha/images/bullet_grey.gif" width="9" height="9" /></td>
                                                        <td width="98%"><span class="textnormal">รายละเอียดที่ควรทราบก่อนยืม</span> <a href="http://www.happy.co.th/th/low/07_jaidee_hai_yeam.php" target="_blank" class="textnormal_blue">คลิกที่นี่</a></td>
                                                    </tr>
                                                    <tr>
                                                        <td><img src="${RESOURCE}/tha/images/bullet_grey.gif" width="9" height="9" /></td>
                                                        <td class="textnormal">เงินหมดเมื่อไหร่ อยากจะยืมเชิญได้เลยจ้ะ</td>
                                                    </tr>
                                                    <!--SVLT.LOOP:list-->
                                                    <tr>
                                                        <td></td>
                                                        <td class="textnormal">
                                                            <input type="radio" name="packCodeSelect"  checked="checked" /> ยืม 30 บาท
                                                        </td>
                                                    </tr>
                                                    <!--SVLT.END:list-->

                                                    <!-- TODO remove this comment later if the above servlet loop is really required and correct.
										<tr>
										  <td>&nbsp;</td>
										  <td class="textnormal"><input type="radio" name="radiobutton" value="radiobutton">
										  ยืม 30 บาท</td>
										</tr>
										--> 
                                                </table>
                                                <p class="textredbold">
                                                    <!--SVLT.LOOP:ERROR_BOX-->
                                                    <!--SVLT.VAR:ERROR_MSG-->
                                                    <!--SVLT.END:ERROR_BOX-->
                                                </p>
                                            </td></tr>
                                        <tr>
                                            <td height="15" align="left">
                                                <table width="250" border="0" align="center" cellpadding="5" cellspacing="0">
                                                    <tr align="center" valign="top">
                                                        <td><a href="javascript:void(0);" onclick="doSubmit();"><img src="${RESOURCE}/tha/images/14_webservice_submit.gif" width="58" height="23" border="0" /></a></td>
                                                        <td><a href="${pageContext.request.contextPath}/index.html?page=Welcome"><img src="${RESOURCE}/tha/images/14_webservice_cancel.gif" width="58" height="23" border="0" /></a></td>
                                                    </tr>
                                                </table>
                                                <p><br/><br/></p>
                                            </td>
                                        </tr>
                                        <!--SVLT.VAR:CONF_BOTTOM-->
                                        <%@ include file="../tail.jsp" %>
                                    </table>

                                </td>
                            </tr>
                        </table>
                        <!--เนื้อหาสิ้นสุดที่นี่-->

                    </div>
                    <div class="content-bottom"></div>
                </div>
            </div>
        </div>
        <div id="footer">
            <img src="${RESOURCE}/tha/images/copy_right.jpg" />
            <a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/tha/images/dtact_logo.jpg" border="0" /></a>
            <a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/tha/images/virus_icon.jpg" border="0" /></a>
        </div>
    </body>
</html>
